/**
 * 文件名：StockoutErpResourceVo.java
 *
 * 创建人：Fyh - 1009173473@qq.com
 *
 * 创建时间：2019年9月9日 下午3:50:08
 *
 * 版权所有：南京植百汇智能科技服务有限公司
 */
package com.z100h.supplychain.evidence.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.jeeplus.common.utils.StringUtils;
import com.z100h.supplychain.core.ProductionState;

/**
 * [描述信息：说明类的基本功能]
 *
 * @author Fyh - 1009173473@qq.com
 * @version 1.0 Created on 2019年9月9日 下午3:50:08
 */
public class StockoutErpResourceVo {

	private String id;

	private String stockroomName;

	private String storageName;

	private String erpResId;

	private String erpResName;

	private String state;

	private String stateName;

	public StockoutErpResourceVo() {
		super();
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getStockroomName() {
		return stockroomName;
	}

	public void setStockroomName(String stockroomName) {
		this.stockroomName = stockroomName;
	}

	public String getStorageName() {
		return storageName;
	}

	public void setStorageName(String storageName) {
		this.storageName = storageName;
	}

	public String getErpResId() {
		return erpResId;
	}

	public void setErpResId(String erpResId) {
		this.erpResId = erpResId;
	}

	public String getErpResName() {
		return erpResName;
	}

	public void setErpResName(String erpResName) {
		this.erpResName = erpResName;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		if (StringUtils.isNotBlank(state)) {
			this.stateName = ProductionState.get(state).getName();
		}
		this.state = state;
	}

	public String getStateName() {
		return stateName;
	}

	public void setStateName(String stateName) {
		this.stateName = stateName;
	}

}
